home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-10-26 | 1.3 KB | 64 lines | [TEXT/PJMM] |
- UNIT TestStuff;
-
- INTERFACE
-
- USES
- ROM85, TestGlobals;
-
- PROCEDURE theTest;
- PROCEDURE theDrawing;
-
- IMPLEMENTATION
-
- PROCEDURE theTest;
- VAR
- str0, str1, str2 : str255;
- BEGIN
- str0 := chr(13);
- SysBeep(1); (* for now *)
- ShowWindow(JeffsWindow);
- ForeColor(blackColor);
- str1 := 'This is a Test!';
- str2 := 'Put your test code here…';
- TESetSelect(0, 0, JeffsText);
- TESetText(pointer(ORD(@str1) + 1), length(str1), JeffsText);
- TEInsert(pointer(ORD(@str0) + 1), 1, JeffsText);
- TEInsert(pointer(ORD(@str2) + 1), length(str2), JeffsText);
- InvalRect(JeffsWindow^.portRect);
- END;
-
- PROCEDURE theDrawing;
- VAR
- r : rect;
- BEGIN
- PenSize(3, 3);
- PenMode(patCopy);
- PenPat(black);
- ForeColor(redColor);
- BackColor(whiteColor);
- MoveTo(40, 20);
- SetRect(r, 40, 40, 80, 100);
- FrameRect(r);
- OffsetRect(r, 10, 10);
- FrameRect(r);
- ForeColor(blueColor);
- OffsetRect(r, 10, 10);
- FrameRect(r);
- OffsetRect(r, 10, 10);
- FrameRect(r);
- ForeColor(yellowColor);
- SetRect(r, 20, 130, 100, 180);
- FillOval(r, dkGray);
- OffsetRect(r, 15, 15);
- ForeColor(greenColor);
- FillOval(r, gray);
- OffsetRect(r, 15, 15);
- ForeColor(cyanColor);
- FillOval(r, black);
- OffsetRect(r, 15, 15);
- ForeColor(magentaColor);
- FillOval(r, ltGray);
- ForeColor(blackColor);
- END;
-
- END.